package com.ts.animal.constant;

public class AnimalConstant {

    //动物状态
    public static String INPUTS_STATUS_FEEDING = "0";//饲养中
    public static String INPUTS_STATUS_SALED = "1";//售卖
    public static String INPUTS_STATUS_SUBSTANDARD = "2";//次品

    //审核状态
    public static String SUBSTANDAR_STATUS_NUNAPPROVAL = "0";//未审核
    public static String SUBSTANDAR_STATUS_APPROVAL = "1";//已审核

    //工作模式
    public static String WORK_MOEL_1001 = "1001";//入库采集
    public static String WORK_MOEL_1002 = "1002";//检疫采集
    public static String WORK_MOEL_1003 = "1003";//检验采集
    public static String WORK_MOEL_1004 = "1004";//耗损采集
    public static String WORK_MOEL_1005 = "1005";//出库采集


    public static String DICT_ACCESS_DIRECTION = "time_boundary";//出栏数据字典 key
    public static String ACCESS_IN = "in";//进
    public static String ACCESS_OUT = "out";//出
    public static String DICT_ACCESS_INTERVAL = "collection_interval";//数据采集时间间隔

    //********************************Redis***************************
    public static String ROOT = "ts:animal:";//根
    public static String REDIS_DICT_ACCESS_INTERVAL_KEY = ROOT + "expire:key:";//数采集数据key

    public static String REDIS_BASE_STATION_KEY = ROOT + "baseStation:";//基站key  hset
    public static String REDIS_BASE_STATION_DATA_KEY = ROOT + "baseStationData";//基站数据key
    public static String REDIS_BASE_STATION_HEAR_BEAT_DATA_KEY = ROOT + "baseStationHeardBeatData";//基站数据key
    public static String REDIS_BASE_STATION_STATUS_KEY = ROOT + "baseStationData:status:";//基站状态 key
    public static String REDIS_BASE_WARNING_MAX_ID = ROOT + "baseStationData:warningMaxId";//预警判断，用到最大同步数据id
    public static String REDIS_BASE_OPEN_API_CALL_FLAG_BASESTATIONDATA = ROOT + "baseStationData:openapiflag:basestationdata:";//open api 调用标示

    //导出
    public static String REDIS_BASE_EXPORT_PARAM_DATA_KEY = ROOT + "exportParamData";//导出数据参数（excel）key
    public static String REDIS_BASE_EXPORT_FLAG = ROOT + "exportParamData:";//导出数据参数（excel）key

    //基站 耳标失控告警
//    public static String REDIS_BASE_STATION_TAG_LOST_KEY = ROOT + "baseStationTagLost:";//导出数据参数（excel）key


    //*********************************系统参数 ********************************
    //基站回调相关参数命名
    /* 基站数据上报到服务器的时长间隔
    单位：分钟 如果接口没有未返回，请设置默认值 10 分钟，当上送条件满足 rpm 或者 size时候进行上报数据
     */
    public static String key_name_base_station_send_data_interval_duration = "base_station_send_data_interval_duration";
    /**
     * 基站上报批量数据量大小 数据条数
     * 如果接口没有未返回，请设置默认值 100 条，当上送条件满足 rpm 或者 size时候进行上报数据
     */
    public static String key_name_base_station_data_size = "base_station_data_size";
    /**
     * 基站上报数据的请求URL地址
     */
    public static String key_name_base_station_callback_url = "base_station_callback_url";
    /**
     * 固件升级URL若该字段不为空，则表示当前基站需升级；反之，无需升级。
     */
    public static String key_name_base_station_ota_url = "base_station_ota_url";
    public static String key_name_base_station_wifi_name = "base_station_wifi_name";//WiFi名称
    public static String key_name_base_station_wifi_password = "base_station_wifi_password";//WiFi密码
    /**
     * 单位：分钟
     * 如果接口没有未返回，请设置默认值 5 分钟
     */
    public static String key_name_base_station_heartbeat = "base_station_heartbeat";
    //基站超时 认定为离线
    public static String key_name_base_station_status_online_timeout = "base_station_status_online_timeout";

    //接收数据开关
    public static String key_name_base_station_receive_switch = "base_station_receive_switch";
    //处理数据开关
    public static String key_name_base_station_resolve_switch = "base_station_resolve_switch";


    //openAPI接口开关
    public static String key_name_open_api_switch = "open_api_switch";
    //openAPI是否启用签名
    public static String key_name_open_api_sign_switch = "open_api_sign_switch";
    //接口请求超时（分钟）
    public static String key_name_open_api_timeout = "open_api_timeout";
    //接口请求最小时间间隔 （秒）
    public static String key_name_open_api_call_interval = "open_api_call_interval";
    //接口查询采集时间跨度 （分钟）
    public static String key_name_open_api_query_data_collectionTime_limit = "open_api_query_data_collectionTime_limit";
    //删除N天前的历史数据（天）
    public static String key_name_delete_n_day_rfid_data = "delete_n_day_rfid_data";

    //基站名称、标签号(同步数据)有效性校验开关
    public static String key_name_sync_data_validity_check_switch = "sync_data_validity_check_switch";
    //基站名称前缀  多个用英文逗号隔开
    public static String key_name_base_station_name_prefix = "base_station_name_prefix";
    //标签号前缀  不包括多个用英文逗号隔开
    public static String key_name_num_exclude_prefix = "num_exclude_prefix";
    //标签号后缀  不包括多个用英文逗号隔开
    public static String key_name_num_exclude_endfix = "num_exclude_endfix";

    //自动填充经纬度开发
    public static String key_name_auto_fill_sw_switch = "auto_fill_sw_switch";
    //测试用户名称  多个用英文逗号隔开
    public static String key_name_test_user_name = "test_user_name";

    //同一个用户导出文件时间间隔（秒）
    public static String key_name_export_interval = "export_interval";
    //导出文件每个sheet 数量（条数）
    public static String key_name_export_sheetSize = "export_sheetSize";


    //登录开关  close状态下提示：系统证书已到期，请联系管理员。
    public static String key_name_login_switch = "login_switch";


    //检查耳标是否以录入耳标为准有效开关  耳标同步数据  养殖户统计耳标数  openAPI查询耳标同步数据 受影响
    public static String key_name_check_label_switch = "check_label_switch";
    //测试养殖户id 多个用英文逗号隔开
    public static String key_name_test_dept_ids = "test_dept_ids";

    //耳标自动录入开关 open close
    public static String key_name_auto_enter_data_switch = "auto_enter_data_switch";
    //是否启用演示账号校验  open close
    public static String key_name_check_demo_user = "check_demo_user";
    //演示用户 多个用英文逗号隔开
    public static String key_name_demo_usernames = "demo_usernames";

    //基站失控 ，查询记录时间跨度  70分钟
    public static String key_name_station_warn_query_time_span = "station_warn_query_time_span";
    //耳标失控，查询记录时间跨度   70分钟
    public static String key_name_tag_warn_query_time_span = "tag_warn_query_time_span";
    //从当前时间往前推查询告警数量时间段  分钟
    public static String key_name_query_warn_time_quantum = "query_warn_time_quantum";


    //系统日志路径
    public static String key_name_system_log_path = "system_log_path";

    //*********************************导出********************************


    //*********************************其他********************************
    //基站状态
    public static String base_station_status_online = "online";
    public static String base_station_status_offline = "offline";

    //预警分类
    public static String warning_type_sick = "sick";//疾病
    public static String warning_type_parturition = "parturition";//分娩
    public static String warning_type_oestrus = "oestrus";//发情
        public static String warning_type_baseStation = "baseStation";//基站失控
    public static String warning_type_tag = "tag";//耳标失控

    //生病记录状态
    public static String warning_sick_status_sick = "sick";//疾病
    public static String warning_sick_status_cure = "cure";//治愈


    public static String open = "open";//开
    public static String close = "close";//关

    public static String export_being = "export_being";//正在导出
    public static String export_finish = "export_finish";//导出完成

    ///// ///// ///// ///// ///// /////mybatis ///// /////
    public static String test_user_name = "testUserName";//测试用户 在mybatis中的字段标识
    //测试用户名称
    public static String test_user_deptId = "testUserDeptId";//测试用户部门
    //super User‘name division
    public static String super_username_division = "@";
    //admin user
    public static String super_username = "admin";
    //admin user
    public static String open_label_switch = "openLabelSwitch";


    //使用状态
    public static String use_status_yes = "use_status_yes";
    public static String use_status_not = "use_status_not";
    public static String use_status_test = "use_status_test";
    //结算状态
    public static String settlement_status_yes = "settlement_status_yes";
    public static String settlement_status_not = "settlement_status_not";
    //确认状态
    public static String verify_status_yes = "verify_status_yes";
    public static String verify_status_not = "verify_status_not";

    //基站参数 状态#{-1：不支持；0：不正常；1：正常；2：未知}
    public static String baseStation_arg_status_nonsupport = "-1";
    public static String baseStation_arg_status_abnormality = "0";
    public static String baseStation_arg_status_normal = "1";
    public static String baseStation_arg_status_unknown = "2";


    //基站
    public static String baseStation = "baseStation";
    //基站-GPS天线状态
    public static String baseStation_gps = "baseStation_gps";
    //基站-市电源状态
    public static String baseStation_power = "baseStation_power";
    //基站-基站电池电压
    public static String baseStation_elec = "baseStation_elec";
    //基站-数据上传
    public static String baseStation_upload = "baseStation_upload";
    //耳标
    public static String tag = "tag";
    //耳标-电压
    public static String tag_elec = "tag_elec";
    //耳标-数据上传
    public static String tag_upload = "tag_upload";

}
